# coding:utf-8
#
# file:traverse.py

import os, os.path


def traverse(pathname):
    for item in os.listdir(pathname):
        fullitem = os.path.join(pathname, item)
        print(fullitem)
        if os.path.isdir(fullitem):
            traverse(fullitem)


traverse("C:/迅雷下载")
